﻿using System;

using Fuse8.DomainFramework.Domain;

namespace Fuse8.ContentManagementFramework.Domain.Commands
{
    public abstract class CmsMediaSelectAllCommand : BaseEntityParameterCommand<CmsMedia, CmsMediaSelectCommandParameter>
    {
        public override string CacheKey
        {
            get
            {
                return string.Format("SiteGroup_{0};Site_{1};MimeType_{2};WithSubFolders_{3}",
                    CommandParameter.SiteGroupId,
                    CommandParameter.SiteId,
                    CommandParameter.MimeType,
                    CommandParameter.WithSubfolders);
            }
        }

        public override string CommandName
        {
            get
            {
                return "CmsMediaSelectAllCommand";
            }
        }
    }
}
